package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.JsonResult;
import cn.tedu.charging.common.pojo.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
//告诉接口去接通哪个服务
@FeignClient("userService")
public interface UserClient {
    //把请求地址要粘全
    @GetMapping("/user/info/{userId}")
    //然后把方法名要粘全
    JsonResult<UserInfoVO> getUserInfo(@PathVariable("userId") Integer userId);

}
